|
In numerical analysis, Brent's method is a complicated but popular root-finding algorithm combining the bisection method, the secant method and inverse quadratic interpolation. It has the reliability of bisection but it can be as quick as some of the less reliable methods. The algorithm tries to use the potentially fast-converging secant method or inverse quadratic interpolation if possible, but it falls back to the more robust bisection method if necessary. Brent's method is due to Richard Brent and builds on an earlier algorithm by Theodorus Dekker. Consequently, the method is also known as Brent-Dekker. == Dekker's method == The idea to combine the bisection method with the secant method goes back to . Suppose that we want to solve the equation ''f''(''x'') = 0. As with the bisection method, we need to initialize Dekker's method with two points, say ''a''0 and ''b''0, such that ''f''(''a''0) and ''f''(''b''0) have opposite signs. If ''f'' is continuous on (''b''0 ), the intermediate value theorem guarantees the existence of a solution between ''a''0 and ''b''0. Three points are involved in every iteration: * ''b''''k'' is the current iterate, i.e., the current guess for the root of ''f''. * ''a''''k'' is the "contrapoint," i.e., a point such that ''f''(''a''''k'') and ''f''(''b''''k'') have opposite signs, so the interval (''b''''k'' ) contains the solution. Furthermore, |''f''(''b''''k'')| should be less than or equal to |''f''(''a''''k'')|, so that ''b''''k'' is a better guess for the unknown solution than ''a''''k''. * ''b''''k''−1 is the previous iterate (for the first iteration, we set ''b''''k''−1 = ''a''0). Two provisional values for the next iterate are computed. The first one is given by linear interpolation, also known as the secant method: :: and the second one is given by the bisection method :: If the result of the secant method, ''s'', lies strictly between ''b''''k'' and ''m'', then it becomes the next iterate (''b''''k''+1 = ''s''), otherwise the midpoint is used (''b''''k''+1 = ''m''). Then, the value of the new contrapoint is chosen such that ''f''(''a''''k''+1) and ''f''(''b''''k''+1) have opposite signs. If ''f''(''a''''k'') and ''f''(''b''''k''+1) have opposite signs, then the contrapoint remains the same: ''a''''k''+1 = ''a''''k''. Otherwise, ''f''(''b''''k''+1) and ''f''(''b''''k'') have opposite signs, so the new contrapoint becomes ''a''''k''+1 = ''b''''k''. Finally, if |''f''(''a''''k''+1)| < |''f''(''b''''k''+1)|, then ''a''''k''+1 is probably a better guess for the solution than ''b''''k''+1, and hence the values of ''a''''k''+1 and ''b''''k''+1 are exchanged. This ends the description of a single iteration of Dekker's method. Dekker's method performs well if the function ''f'' is reasonably well-behaved. However, there are circumstances in which every iteration employs the secant method, but the iterates ''b''''k'' converge very slowly (in particular, |''b''''k'' − ''b''''k''−1| may be arbitrarily small). Dekker's method requires far more iterations than the bisection method in this case. proposed a small modification to avoid this problem. He inserted an additional test which must be satisfied before the result of the secant method is accepted as the next iterate. Two inequalities must be simultaneously satisfied: Given a specific numerical tolerance , if the previous step used the bisection method, the inequality :: must hold to perform interpolation, otherwise the bisection method is performed and its result used for the next iteration. If the previous step performed interpolation, then the inequality :: is used instead to perform the next action (to choose) interpolation (when inequality is true) or bisection method (when inequality is not true). Also, if the previous step used the bisection method, the inequality :: must hold, otherwise the bisection method is performed and its result used for the next iteration. If the previous step performed interpolation, then the inequality :: is used instead. This modification ensures that at the kth iteration, a bisection step will be performed in at most additional iterations, because the above conditions force consecutive interpolation step sizes to halve every two iterations, and after at most iterations, the step size will be smaller than , which invokes a bisection step. Brent proved that his method requires at most ''N''2 iterations, where ''N'' denotes the number of iterations for the bisection method. If the function ''f'' is well-behaved, then Brent's method will usually proceed by either inverse quadratic or linear interpolation, in which case it will converge superlinearly. Furthermore, Brent's method uses inverse quadratic interpolation instead of linear interpolation (as used by the secant method) .If ''f''(''b''''k''), ''f''(''a''''k'') and ''f''(''b''''k''−1) are distinct, it slightly increases the efficiency. As a consequence, the condition for accepting ''s'' (the value proposed by either linear interpolation or inverse quadratic interpolation) has to be changed: ''s'' has to lie between (3''a''''k'' + ''b''''k'') / 4 and ''b''''k''. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Brent's method」の詳細全文を読む スポンサード リンク
|